package com.it.impl;

import com.it.TypeService;
import com.it.dao.TypeMapper;
import com.it.pojo.Type;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TypeServiceImpl implements TypeService {
    @Resource
    private TypeMapper typeMapper;

    @Override
    public List<Type> listTypes() {

        List<Type> types = typeMapper.selectList(null);
        return types;
    }
}
